//
//  XJAddressFormat.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/5/22.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol XJAddressFormatDelegate <NSObject>
@required
/**1.请求到数据的回调*/
- (void)addressFormatRequestAddressListDidSuccessWithArray:(NSMutableArray *)dataArray;

@optional
/**2.请求数据失败*/
- (void)addressFormatRequestAddressListFailed:(NSError *)err;

/**3.只有一个按钮可以被选中*/
- (void)selectAddressAndReloadData;

@end

@interface XJAddressFormat : NSObject
@property(nonatomic, weak) id<XJAddressFormatDelegate>delegate;

/**1.请求接口:获取收货地址列表*/
- (void)requestAddresList;
/**2.取消选中某个row*/
- (void)selectAddressAtIndexPath:(NSIndexPath *)indexPath isSelected:(BOOL)isSelected;


/**编辑地址*/
//- (void)editAddressAtIndexPath:(NSIndexPath *)indexPath;

/**3.删除某个地址*/
- (void)deleteAddressAtIndexPath:(NSIndexPath *)indexPath;


@end
